package cn.dgut.training.vo.goods;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
public class CartTotal implements Serializable {

    @ApiModelProperty(value = "购物车商品总数")
    private Integer goodsCount;

    @ApiModelProperty(value = "购物车总价格")
    private BigDecimal goodsAmount;

    @ApiModelProperty(value = "购物车已选总数")
    private Integer checkedGoodsCount;

    @ApiModelProperty(value = "购物车已选总价格")
    private BigDecimal checkedGoodsAmount;

    public CartTotal(){
        this.goodsCount=0;
        this.goodsAmount=new BigDecimal(0.00);
        this.checkedGoodsCount=0;
        this.checkedGoodsAmount=new BigDecimal(0.00);
    }
}
